package com.bootdo.common.config;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.beans.factory.annotation.Value;


@EnableAutoConfiguration(exclude = {
        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})
@Configuration
public class SecuityConfig {
    public static String contextPath;
    public static String securityReferer;

    @Value("${server.servlet.context-path}")
    public void setContextPath(String contextPath) {
        SecuityConfig.contextPath = contextPath;
    }
    @Value("${security.referer}")
    public void setSecurityReferer(String referer) {
        SecuityConfig.securityReferer = referer;
    }

    public static String getSecurityReferer() {
        return securityReferer;
    }
    public static String getContextPath() {
        return contextPath;
    }

}
